home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c++
- Subject: Re: Svga mode... how?
- Date: Fri, 02 Feb 1996 14:17:12 +0200
- Organization: Carelcomp Forest
- Message-ID: <311200C8.3DEC@cmt.lpr.mail.carel.fi>
- References: <4edpao$13tm@darwin.nbnet.nb.ca>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- Michel Lanteigne wrote:
- >
- > Is there a way to drop to Svga mode, in 640,400 x 256color more
- > precisly, in assembler??? If no, how?? Do u have ne source code of a
- > C++ prog that use Svga mode??
- > --> Michel <--
- >
- >
-
- It usually goes like this:
-
- mov ah,0 // 0 = set mode
- mov al,mode // mode = desired mode number, depends on the chip on the display
- // adapter
- int 0x10 // execute video services
-
- The mode numbers are different for different chip manufacturers (eg. Headland [Video7],
- S3, Matrox, etc). Your display adapter's manual usually lists some of those modes;
- additional information can be obtained from the chip's (or adapter's) manufacturer. Also,
- you generally need to take care of bank switching and bit planes switching in some
- display modes, which is adapter-dependant.
-
- Later,
- AriL
- --
- All my opinions are mine and mine alone.
-